package game.editer.history;

import game.data.FrameData;
import game.data.EffectData;

/**
 * 删除特效
 */
class RemoveEffect extends HistoryAction {
	public var frameData:FrameData;

	public var effectData:EffectData;

	public function new(frameData:FrameData, effect:EffectData):Void {
		super();
		this.frameData = frameData;
		this.effectData = effect;
	}

	override function undo() {
		super.undo();
		frameData.addEffect(effectData);
		EditerStage.timeline.updateTimelineData(true);
	}
}
